


class AnswersModel {
  String questionOrder;
  List<Answer> answer;

  AnswersModel({this.questionOrder, this.answer});

  AnswersModel.fromJson(Map<String, dynamic> json) {
    questionOrder = json['question_order'];
    if (json['answer'] != null) {
      answer = new List<Answer>();
      json['answer'].forEach((v) {
        answer.add(new Answer.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['question_order'] = this.questionOrder;
    if (this.answer != null) {
      data['answer'] = this.answer.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Answer {
  String order;
  String option;
  String answerContent;

  Answer({this.order, this.option, this.answerContent});

  Answer.fromJson(Map<String, dynamic> json) {
    order = json['order'];
    option = json['option'];
    answerContent = json['answer_content'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['order'] = this.order;
    data['option'] = this.option;
    data['answer_content'] = this.answerContent;
    return data;
  }

}



